<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <script>
    for (var proName in window) {
      document.write(proName);
      document.write('<br>');
      console.log(proName);
      for (var son in proName) {
        document.write('\t' + son);
        document.write('<br>');
      }
    }
    for (var test in null) {
      console.log('test');
    }
  </script>
</body>
</html>